<template>
  <div class="home">
    <one @changeVal='show'></one>
    <two :val='val'></two>
  </div>
</template>

<script>
import one from '../components/xiongdi/one.vue'
import two from '../components/xiongdi/two.vue'

export default {
  components: {
    one,two
  },
  data() {
    return {
      val:''
    }
  },
  methods: {
    show(val){
      this.val=val
      console.log(val);
    }
  },
}
</script>
